package pattern.composite

/**
 * 叶子节点
 */
class Leaf(override protected val name:String) extends Component{
  override def display(level: Int): Unit = {
    println("-"*level + name)
  }
}
